<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // console.log(location.search);
    var submit = location.search;
    var qu = submit.slice(1, submit.length);
    var list = qu.split("&");
    // console.log(list);


    var obj = {};

    for(var i in list){
        var index = list[i];
        var equal = index.split("=");
        obj[equal[0]] = decodeURIComponent(equal[1]);
    }
   /*  for (var i = 0; i < list.length; i++) {
        var index = list[i];
        var equal = index.split("=");
        obj[equal[0]] = decodeURIComponent(equal[1]);
    } */
    console.log(obj);
</script>

</html>